package xyz.poke.business.tool.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * <p>
 * 类目表
 * </p>
 *
 * @author 迫壳
 * @since 2024-02-22
 */
@TableName("t_category")
@Data
public class Category implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    /**
     * 类目code,带业务属性
     */
    private String code;

    /**
     * 类目名称
     */
    private String name;

    /**
     * 父类目code
     */
    private String pCode;

    /**
     * 父类目名称
     */
    @TableField(exist = false)
    private String pidName;

    /**
     * 类目图片
     */
    private String picUrl;

    /**
     *  创建时间
     */
    private LocalDateTime gmtCreated;

    /**
     *  更新时间
     */
    private LocalDateTime gmtModified;

    /**
     * 是否删除 1-是 0-否
     */
    private Boolean isDel;
}
